using FytSoa.Domain.Core.Result;
using System.Threading.Tasks;
using FytSoa.Domain.Core.Param;

namespace FytSoa.Application.User;

/// <summary>
/// 会员表服务接口
/// </summary>
public interface IMemberService:IApplicationService
{
    /// <summary>
    /// 查询所有——分页
    /// </summary>
    /// <returns></returns>
    Task<ApiResult<PageResult<MemberDto>>> GetPagesAsync (PageParam param);
    
    /// <summary>
    /// 根据主键查询
    /// </summary>
    /// <returns></returns>
    Task<ApiResult<MemberDto>> GetAsync (long id);

    /// <summary>
    /// 添加
    /// </summary>
    /// <returns></returns>
    Task<ApiResult<bool>> AddAsync (MemberDto model);

    /// <summary>
    /// 修改
    /// </summary>
    /// <returns></returns>
    Task<ApiResult<bool>> ModifyAsync (MemberDto model);

    /// <summary>
    /// 删除-支持多个删除，逗号分隔
    /// </summary>
    /// <returns></returns>
    Task<ApiResult<bool>> DeleteAsync (string ids);
}

